<template>
  <el-radio-group
    :model-value="modelValue"
    @update:modelValue="$emit('update:modelValue', $event)"
    v-bind="$attrs"
  >
    <el-radio
      v-for="option in options"
      :key="option.value"
      :label="option.value"
      :disabled="option.disabled"
    >
      {{ option.label }}
    </el-radio>
  </el-radio-group>
</template>

<script setup>
defineOptions({
  name: 'AxiomRadioGroup'
});

defineProps({
  modelValue: {
    type: [String, Number, Boolean],
    default: null,
  },
  options: {
    type: Array,
    required: true,
    default: () => [],
  },
});

defineEmits(['update:modelValue']);
</script> 